/* $Id: types.h 13 2006-12-14 21:07:45Z judas $ */

#ifndef NIH_TYPES_H
#define NIH_TYPES_H 1

#include <nih/cdefs.h>

BEGIN_C_DECLS

typedef void nih_free_fnc(void *);

extern inline void nih_free_call(nih_free_fnc *free_fnc, void *arg)
{
        if (free_fnc)
                free_fnc(arg);
}

END_C_DECLS

#endif /* NIH_TYPES_H */

